// Lib3D.cpp
//
//////////////////////////////////////////////////////////////////////

#include "Lib3D.h"

FILE * debugFile=0;
static int count=0;

#ifdef WIN32
BOOL APIENTRY DllMain( HANDLE hModule,
                       DWORD  ul_reason_for_call,
                       LPVOID lpReserved
					 )
{
    switch (ul_reason_for_call)
	{
		case DLL_PROCESS_ATTACH:/* count++; if(!debugFile) debugFile=fopen("c:\\log.txt","a+"); break;*/
		case DLL_THREAD_ATTACH:
		case DLL_THREAD_DETACH:
		case DLL_PROCESS_DETACH: /*if(count--<=0){fclose(debugFile); debugFile=0;} *///Engine.dll no llama a process_attach???
			break;
    }
    return TRUE;
}

/*GCC complains about missing __pure_virtual(), so here is a definition.
 This is probably wrong*/
void __pure_virtual()
{
}

#endif

